/* eslint-disable no-unused-vars */
import {MyRequestAccount} from './my_axios'
// import { faker } from '@faker-js/faker/locale/fakerZH_CN';
// import { faker } from '@faker-js/faker';

export function logIn(username, password){
  return MyRequestAccount.post("/login",{
    username,
    password
  })
}

export function getInfo(){
  return MyRequestAccount.post("/getinfo")
}

export function logOut(){
  return MyRequestAccount.post("/logout")
}

// TODO:updatePassword
export function updatePassword(data){
  return MyRequestAccount.post("/updatepassword",data)
}
// function updatePassword(){
//   "POST"
// }